/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package entities;

import java.io.Serializable;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 *
 * @author vasi
 */
@Entity
@Table(name="content_recommendations")
public class ContentRecommendationsEntity implements Serializable {
    private static final long serialVersionUID = 1L;
    @Id
    @GeneratedValue(strategy = GenerationType.AUTO)
    @Column(name="crid")
    private Long crid;

    @Column(name="cid")
    private Long cid;

    @Column(name="uid")
    private Long uid;

    @Column(name="email")
    private String email;

    @Column(name="message")
    private String message;

    @Column(name="created")
    private Long created;

    public Long getCid() {
        return cid;
    }

    public void setCid(Long cid) {
        this.cid = cid;
    }

    public Long getCreated() {
        return created;
    }

    public void setCreated(Long created) {
        this.created = created;
    }

    public Long getCrid() {
        return crid;
    }

    public void setCrid(Long crid) {
        this.crid = crid;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public Long getUid() {
        return uid;
    }

    public void setUid(Long uid) {
        this.uid = uid;
    }

    @Override
    public int hashCode() {
        int hash = 0;
        hash += (crid != null ? crid.hashCode() : 0);
        return hash;
    }

    @Override
    public boolean equals(Object object) {
        // TODO: Warning - this method won't work in the case the crid fields are not set
        if (!(object instanceof ContentRecommendationsEntity)) {
            return false;
        }
        ContentRecommendationsEntity other = (ContentRecommendationsEntity) object;
        if ((this.crid == null && other.crid != null) || (this.crid != null && !this.crid.equals(other.crid))) {
            return false;
        }
        return true;
    }

    @Override
    public String toString() {
        return "entities.ContentRecommendationsEntity[id=" + crid + "]";
    }

}
